package com.cenwangkeji.resident.ui.activity;

import android.os.Bundle;
import android.widget.TextView;

import com.cenwangkeji.resident.R;
import com.cenwangkeji.resident.model.bean.ServicePackageBean;
import com.lws.basic.base.BaseActivity;

import butterknife.BindView;
import butterknife.ButterKnife;

//服务包详情
public class ServicePackageDetailActivity extends BaseActivity {


    @BindView(R.id.tv_name)
    TextView mTvName;
    @BindView(R.id.tv_content)
    TextView mTvContent;
    @BindView(R.id.tv_number)
    TextView mTvNumber;
    @BindView(R.id.tv_good_reputation)
    TextView mTvGoodReputation;

    @Override
    public int setLayoutId() {
        return R.layout.activity_service_package_detail;
    }



    @Override
    public void initData() {
        super.initData();
        ButterKnife.bind(this);
        ServicePackageBean.DataBean dataBean = getIntent().getParcelableExtra("date");
        mTvName.setText("服务包名称："+dataBean.getName());
        mTvContent.setText("内容："+dataBean.getContent());
        mTvNumber.setText( "服务"+ dataBean.getMember()+"人");
        mTvGoodReputation.setText( "好评率"+dataBean.getFeedback()+"%");
    }
}
